package extensions.romario.packet;

/**
 *
 * @author Manu
 */
public enum Auth {

    Kick(0),
    Login(1);
    private byte _b;

    private Auth(int b) {
        _b = (byte) b;
    }

    public byte getByte() {
        return _b;
    }

	public static Auth get(byte b) {
		if (b == Kick.getByte())
			return Kick;
		if (b == Login.getByte())
			return Login;
		
		throw new AssertionError("Auth for byte '"+b+"' is not defined.");
	}
}
